﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleClasses
{
    class Program
    {
        static void Main(string[] args)
        {
            Car myNewCar = new Car();
            myNewCar.Make = "Auto";
            myNewCar.Color = "Blue";
            myNewCar.Year = 2009;
            myNewCar.Modle = "I don\'t know";
            Console.WriteLine("{0}-{1}-{2}",
                myNewCar.Make,
                myNewCar.Color,
                myNewCar.Modle, 
                myNewCar.Year 
                );
            Console.WriteLine("Car\'s value: {0:c}", myNewCar.daterMineMarketValue());
            Console.ReadLine();
        }
        private static double determinemarketvalue(Car car)
        {
            double carvalue = 100.0;
            return carvalue;
        }
    }
    class Car
    {
        public string Make { get; set; }
        public string Modle { get; set; }
        public int Year { get; set; }
        public string Color { get; set; }
        public double daterMineMarketValue()
        {
            double carValue = 100.0;
            if (this.Year<2010)
            {
                carValue = 250.0;
            }
            else
            {
                carValue = 500.0;
            }
            return carValue;
        }
    }
}
